/* Maps & Places */

#photoprism .map-control {
    position: absolute;
    background: transparent;
    top: 10px;
    left: 10px;
    z-index: 2;
}

#photoprism.is-rtl .map-control {
    left: auto;
    right: 10px;
}

#photoprism .map-control .map-control-search {
    overflow: hidden;
    border-radius: 24px;
}

#photoprism #map .marker {
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
    background-color: rgba(23, 23, 23, 0.23);
    color: rgba(0, 0, 0, 0.87);
    display: block;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ffffff99;
}

#photoprism #map .cluster-marker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1px;
    overflow: hidden;
    /* background-color: #ffffff99; */
    width: 100%;
    height: 100%
}

#photoprism #map .counter-bubble {
    border-radius: 100%;
    position: absolute;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    color: #ffffff;
    top: -5px;
    right: -5px;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
}

#photoprism #map .cluster-marker > div {
    width: 100%;
    height: 100%;
    background-size: cover;
}

#photoprism .maplibregl-ctrl-attrib-inner a {
    color: #333 !important;
}

#photoprism .maplibregl-style-list {
    display: none;
}

#photoprism .maplibregl-ctrl-group .maplibregl-style-list button {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    font-size: 14px;
    padding: 8px 8px 6px;
    text-align: right;
    width: 100%;
    height: auto;
    color: #000000;
}

#photoprism .maplibregl-style-list button.active {
    font-weight: bold;
}

#photoprism .maplibregl-style-list button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#photoprism .maplibregl-style-list button + button {
    border-top: 1px solid #ddd;
}

#photoprism .maplibregl-style-switcher {
    background-image: url();
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
}

#photoprism .cluster-control {
    background: #2f3031;
    position: absolute;
    top: auto;
    z-index: 2;
    bottom: 0;
    margin: 0;
    padding: 0;
    left: 4px;
    right: 4px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    transition: all 650ms cubic-bezier(0.32, 1, 0.23, 1) 0ms;
}

#photoprism .cluster-control-container {
    min-height: 40vh;
}

#photoprism .cluster-control .p-photos {
    position: absolute;
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
}

@media only screen and (min-height: 1500px) {
    #photoprism .cluster-control-container {
        min-height: 45vh;
    }
}

@media only screen and (max-width: 599px) {
    #photoprism .cluster-control {
        left: 0;
        right: 0;
    }

    #photoprism .cluster-control-container {
        min-height: 66vh;
    }
}
